package com.budwk.app.sqfwDoc.service;

import com.budwk.app.sqfwDoc.models.SqfwTemplateDict;
import com.budwk.app.sqfwDoc.vo.SqfwTemplateDictSimpleVO;
import com.budwk.app.sqfwDoc.vo.SqfwTemplateDictTreeVO;
import com.budwk.starter.database.service.BaseService;

import java.util.List;

/**
 * @author ZY.Wang
 * @since 2023/12/5
 */
public interface SqfwTemplateDictService extends BaseService<SqfwTemplateDict> {

    List<SqfwTemplateDictTreeVO> listDictTree();

    List<SqfwTemplateDict> listDictByParentId(String parentId);

    SqfwTemplateDictSimpleVO getDetail(String id);

    void addDict(String userId, SqfwTemplateDict data);

    void updateDict(String userId, SqfwTemplateDict data);

    void deleteDict(String id);
}
